import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
import qiankun from 'vite-plugin-qiankun'

// https://vite.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    qiankun('Vue3App', { // 微应用名字，与主应用注册的微应用名字保持一致
      useDevMode: true,
    }),

  ],
  resolve:{
    alias:{
      '@': resolve(__dirname,'./src')
    }
  },
  server: {
    // 修改端口号
    port: 8002,
  }
})